package com.bwie.product.feign;

import com.bwie.common.domain.ShopCar;
import com.bwie.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient(name = "bwie-shopcar")
public interface ShopCarFeignController {
    /**
     * 购买购物车里的商品
     * @param shopcarId
     * @return
     */
    @PostMapping("/shopcar/buyProduct/{shopcarId}")
    public Result<ShopCar> buyProduct(@PathVariable Integer shopcarId);
}
